-
Notifications
You must be signed in to change notification settings - Fork 436
feat(clerk-js): Add dev mode warning to components (#3511) #3870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(clerk-js): Add dev mode warning to components (#3511) #3870
Conversation
Co-authored-by: Stefanos Anagnostou <anagstef@users.noreply.github.com>
🦋 Changeset detectedLatest commit: 109b698 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
!preview |
|
Hey @octoper, your preview is available.
|
| this.afterLeaveOrganizationUrl = data.after_leave_organization_url; | ||
| this.afterCreateOrganizationUrl = data.after_create_organization_url; | ||
| this.googleOneTapClientId = data.google_one_tap_client_id; | ||
| this.showDevModeWarning = data.show_devmode_warning; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…pearance.layout.unsafe_disableDevelopmentModeWarnings option
|
!preview |
|
!snapshot |
|
Hey @octoper - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/astro@1.0.5-snapshot.v741fdbd --save-exact
npm i @clerk/backend@1.5.0-snapshot.v741fdbd --save-exact
npm i @clerk/chrome-extension@1.1.8-snapshot.v741fdbd --save-exact
npm i @clerk/clerk-js@5.11.0-snapshot.v741fdbd --save-exact
npm i @clerk/elements@0.11.0-snapshot.v741fdbd --save-exact
npm i @clerk/clerk-expo@2.0.1-snapshot.v741fdbd --save-exact
npm i @clerk/express@0.0.22-snapshot.v741fdbd --save-exact
npm i @clerk/fastify@1.0.24-snapshot.v741fdbd --save-exact
npm i gatsby-plugin-clerk@5.0.0-beta.45 --save-exact
npm i @clerk/localizations@2.5.3-snapshot.v741fdbd --save-exact
npm i @clerk/nextjs@5.2.9-snapshot.v741fdbd --save-exact
npm i @clerk/clerk-react@5.3.0-snapshot.v741fdbd --save-exact
npm i @clerk/remix@4.2.8-snapshot.v741fdbd --save-exact
npm i @clerk/clerk-sdk-node@5.0.21-snapshot.v741fdbd --save-exact
npm i @clerk/shared@2.4.2-snapshot.v741fdbd --save-exact
npm i @clerk/tanstack-start@0.1.12-snapshot.v741fdbd --save-exact
npm i @clerk/testing@1.2.4-snapshot.v741fdbd --save-exact
npm i @clerk/themes@2.1.15-snapshot.v741fdbd --save-exact
npm i @clerk/types@4.10.0-snapshot.v741fdbd --save-exact |
Description
Adding a development mode warning to our components to avoid going to productions with development keys by accident.
To be able to disable the development mode warning in order to preview how the components will look like in production the
appearance.layout.unsafe_disableDevelopmentModeWarningskey has been added.Example usage:
Globally using the
<ClerkProvider />:On each component:
Original PR: #3511
Screenshots
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change